getpmac.c (3e7cb94c9c8e6aaea734c07ebc4f967caf4232c4) | getpmac.c (5e1f7b807d0ee4055823df663c76200c8b27e0a0) |
---|---|
1/*- 2 * Copyright (c) 2002 Networks Associates Technology, Inc. 3 * All rights reserved. 4 * 5 * This software was developed for the FreeBSD Project by Network 6 * Associates Laboratories, the Security Research Division of Network 7 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 8 * ("CBOSS"), as part of the DARPA CHATS research program. --- 105 unchanged lines hidden (view full) --- 114 exit (-1); 115 } 116 error = mac_to_text(label, &string); 117 if (error != 0) { 118 perror("mac_to_text"); 119 exit(EX_DATAERR); 120 } 121 | 1/*- 2 * Copyright (c) 2002 Networks Associates Technology, Inc. 3 * All rights reserved. 4 * 5 * This software was developed for the FreeBSD Project by Network 6 * Associates Laboratories, the Security Research Division of Network 7 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 8 * ("CBOSS"), as part of the DARPA CHATS research program. --- 105 unchanged lines hidden (view full) --- 114 exit (-1); 115 } 116 error = mac_to_text(label, &string); 117 if (error != 0) { 118 perror("mac_to_text"); 119 exit(EX_DATAERR); 120 } 121 |
122 printf("%s\n", string); | 122 if (strlen(string) > 0) 123 printf("%s\n", string); |
123 124 mac_free(label); 125 free(string); 126 exit(EX_OK); 127} | 124 125 mac_free(label); 126 free(string); 127 exit(EX_OK); 128} |